package com.ztools.common.util.common.enumUnit;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: seeTools
 * @Date: 2023/6/30  15:28
 * @Version 1.0
 */
@Getter
@AllArgsConstructor
public enum RechargeTypeEnum {

    /**
     * 后台充值
     */
    increase("pc", "后台充值");


    /**
     * 操作类型
     */
    private final String rechargeType;

    /**
     * 名称
     */
    private final String name;

    /**
     * @param rechargeType 充值类型
     * @return PaymentTypeEnum
     */
    public static RechargeTypeEnum getEnum(String rechargeType) {
        for (RechargeTypeEnum item : RechargeTypeEnum.values()) {
            if (item.getRechargeType().equals(rechargeType)) {
                return item;
            }
        }
        return null;
    }
}
